package com.study.lxy.springmvc.util;

public class UserPrincipleTaker {

    private static ThreadLocal<UserPrinciple> userPrincipleThreadLocal = new ThreadLocal<>();

    public static UserPrinciple get(){
        return userPrincipleThreadLocal.get();
    }

    public static void set(UserPrinciple userPrinciple){
        userPrincipleThreadLocal.set(userPrinciple);
    }

}
